package com.zj.weather;

import android.content.Context;

import com.zj.weather.base.BaseWeatherBgView;
//import com.zj.weather.bgviews.CloudyDrawer;
//import com.zj.weather.bgviews.FogDrawer;
//import com.zj.weather.bgviews.HazeDrawer;
//import com.zj.weather.bgviews.light.LightDrawer;
//import com.zj.weather.bgviews.OverCastDrawer;
import com.zj.weather.bgviews.CloudyDrawer;
import com.zj.weather.bgviews.light.LightDrawer;
import com.zj.weather.bgviews.RainDrawer;
import com.zj.weather.bgviews.SnowDrawer;
import com.zj.weather.bgviews.StarDrawer;
import com.zj.weather.bgviews.SunnyDrawer;
import com.zj.weather.utils.StaticValue;
//import com.zj.weather.bgviews.SandDrawer;
//import com.zj.weather.bgviews.SnowDrawer;
//import com.zj.weather.bgviews.StarDrawer;
//import com.zj.weather.bgviews.SunnyDrawer;
//import com.zj.weather.bgviews.WindDrawer;

/**
 * Created by zhaojie on 2017/9/1.
 */

public class BackgroundManifest {


    public static final int WK_SUNNY = 0; //晴天
    public static final int WK_CLOUD = 1; //多云
    public static final int WK_OVERCAST = 2; //阴天
    public static final int WK_HAZE = 3;  //雾霾
    public static final int WK_RAINY = 4; //雨天
    public static final int WK_SNOW = 5; // 雪天
    public static final int WK_FOG = 6;  //雾天
    public static final int WK_LIGHT = 7; //雷雨
    public static final int WK_SAND = 8;  //沙尘暴
    public static final int WK_WIND = 9;  //大风


    public static BaseWeatherBgView getBgView(Context c, int key) {
        BaseWeatherBgView baseWeatherBgView = null;
        switch (key) {
            case WK_SUNNY:
                if (StaticValue.isDay())
                    baseWeatherBgView = new SunnyDrawer(c);
                else
                    baseWeatherBgView = new StarDrawer(c);
                break;
            case WK_RAINY:
                baseWeatherBgView = new RainDrawer(c);
                break;
            case WK_CLOUD:
                baseWeatherBgView = new CloudyDrawer(c);
                break;
//            case WK_OVERCAST:
//                baseWeatherBgView = new OverCastDrawer(c, key);
//                break;
//            case WK_FOG:
//                baseWeatherBgView = new FogDrawer(c);
//                break;
//            case WK_HAZE:
//                baseWeatherBgView = new HazeDrawer(c, key);
//                break;
//            case WK_SAND:
//                baseWeatherBgView = new SandDrawer(c, key);
//                break;
//            case WK_WIND:
//                baseWeatherBgView = new WindDrawer(c, key);
//                break;
            case WK_SNOW:
                baseWeatherBgView = new SnowDrawer(c);
                break;
            case WK_LIGHT:
                baseWeatherBgView = new LightDrawer(c);
                break;
        }
        return baseWeatherBgView;
    }
}
